<template>
	<div class="set-act-box">
		<el-dialog
		   title="编辑内容"
		   :visible.sync="dialogVisible"
		   width="30%"
		   :before-close="handleClose">
			<div>
				  <span class="m-s-txt-lb">常见文字:</span>
				  <el-radio v-model="radio" label="1">显示</el-radio>
				  <el-radio v-model="radio" label="2">隐藏</el-radio>
			</div>
		</el-dialog>
	</div>
</template>

<script>
	export default
	{
		data()
		{
			return{
				dialogVisible:false,
				radio : "",
				act:'',
			}
		},
		
		methods:
		{
			showWin(data)
			{
				this.dialogVisible = true;
				this.act = data.act;
				this.radio = data.data ? "1" : "2";
			},
			
			handleClose()
			{
				this.dialogVisible = false;
				let data = {};
				data.act = this.act;
				data.data = this.radio == "1" ? true : false;
				this.$emit('parttEditShowHide',data);
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	
	.set-act-box
	{
		::v-deep.el-dialog
		{
			margin-top: 35vh !important;
		}
	}
	
	.m-s-txt-lb
	{
		padding-right: 10px;
	}
	
	.txt-lb
	{
		padding-right: 14px;
	}
	
	.o-u-box
	{
		display:flex;
		align-items: center;
		padding-top: 20px;
		.f-n-txt-lb
		{
			padding-right: 10px;
		}
		
		
	}
	.txt-size-box
	{
		display:flex;
		align-items: center;
		.t-s-lb
		{
			padding-right: 20px;
		}
		.m-s-txt-lb
		{
			padding-left: 20px;
		}
	}
	
	.s-c-box
	{
		display: flex;
		align-items: center;
	}
	
	::v-deep.el-slider__runway
	{
		width: 200px !important;
	}
</style>